package com.qigao.mall.api;

import com.qigao.mall.jdbc.model.TbMerChannel;

import java.util.Map;

/**
 * @author luiz
 * @Title: com.qigao.mall.api
 * @ProjectName three-mall
 * @date 2020-03-2020/3/12 15:22
 * @Description:渠道路由服务
 */
public interface ChannelRouteService {
    /**
     * 报文签名校验
     * @param respData
     * @return
     */
    boolean verifySign(Object respData, String webSource);

    /**
     * 退款解密
     * @param respMap
     * @return
     */
    String decryptData(Map<String, String> respMap, String webSource);

    /**
     * 查找渠道路由信息
     * @param merNo
     * @param webSource
     * @param payWay
     * @return
     */
    TbMerChannel findChannelRoute(String merNo, String webSource, String payWay);

    TbMerChannel findChannelRouteShop(String shopNo, String webSource, String payWayCode);
}
